<?php
class Admin_Model_CatGame extends Zend_Db_Table_Abstract
{
	/**
	 * Model Cat_Games
	 * @author Nguyen Manh Hung
	 */
	
	protected $_name = TABLE_CAT_GAME; 
	protected $_id = 'id';
	
	/**
	 * insert new row
	 * @author Nguyen Manh Hung
	 * @param int $cat_id
	 * @param int $game_id
	 */
	public function create($cat_id, $game_id){
		$row = $this->createRow();
		$row->cat_id = $cat_id;
		$row->game_id = $game_id;
		$row->save();
		$id =$row->id;
		return $id;
	}
}
